﻿using System.Collections.Generic;
/// <summary>
/// 숙박시설
/// 숙박비 : 10%
/// </summary>
public enum Lodging
{
    /// <summary>
    /// 여인숙: 구입비용 10000 
    /// 숙박비는 3%= 1000
    /// </summary>
    Inn = 10000,
    /// <summary>
    /// 콘도 : 구입비용 20000 
    /// 숙박비 2000
    /// </summary>
    Condo = 20000,
    /// <summary>
    /// 호텔 : 구입비용 50000
    /// 숙박비 : 5000
    /// </summary>
    Hotel = 50000
}
public abstract class Area//아바타가 가는 모든 곳
{
    string title;
    public string Title
    {
        get
        {
            return title;
        }
    }
    public Area(string title)
    {
        this.title = title;
    }

    public abstract void Execute(User user);
}
public class EventZone : Area//아바타가 걸리면 이벤트를 일으키는 곳.
{
    public EventZone(string title)
        : base(title)
    {

    }
    public override void Execute(User user)
    {
        switch (Title)
        {
            case "출발지":

            case "무인도":

            case "우주정거장":

            case "사회복지기금 입금":

            case "사회복지기금 출금":

                break;
        }
    }
}
public class Estate : Area//소유할 수 있는 영토
{
    User owner;
    string city;
    int buyMoney;
    public Estate(string title,
        string city,
        int buyMoney
        )
        : base(title)
    {
        this.city = city;
        this.buyMoney = buyMoney;
        this.owner = null;
    }
    public User Onwer
    {
        set { this.owner = value; }
        get { return owner; }
    }
    public int BuyMoney
    {
        get
        {
            return buyMoney;
        }
    }

    public int SellMoney//팔때는 60%만 받음.
    {
        get
        {
            return (int)(buyMoney * 0.6);
        }
    }
    public override void Execute(User user)
    {
        
    }
}
